package com.yan.identitymanagement.controller;

import com.yan.identitymanagement.severice.SevericeImpl;

import java.util.Scanner;

/**
 * @author taoge
 * @Date 2024/7/31 18:28
 * @Description
 */
public class Controller {
    public static final Scanner INPUT = new Scanner(System.in);
    public static final SevericeImpl severiceImpl = new SevericeImpl();
    public static void main(String[] args) {
        while (true) {
            System.out.println("--------------公民身份管理系统------------------");
            System.out.println("1.信息录入");
            System.out.println("2.信息查询");
            System.out.println("3.信息修改");
            System.out.println("4.信息删除");
            System.out.println("5.退出");
            System.out.println("-----------------------------------------------");
            System.out.println("--请选择--");
            int i = INPUT.nextInt();
            switch (i){
                case 1:
                    severiceImpl.informationEntry();
                    break;
                case 2:
                    severiceImpl.informationQuery();
                    break;
                case 3:
                    severiceImpl.informationModification();
                    break;
                case 4:
                    severiceImpl.informationDeletion();
                    break;
                case 5:
                    System.exit(0);
                    break;
            }
        }
    }
}
